package com.yunshipei.core.net;

import io.reactivex.Flowable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Streaming;
import retrofit2.http.Url;

public interface DownloadApi {
    @GET
    @Streaming
    Flowable<Response<ResponseBody>> get(@Url String url);

    @POST
    @Streaming
    Flowable<retrofit2.Response<ResponseBody>> post(@Url String url, @Body RequestBody requestBody);
}
